{% extends "base_generic.html" %}
{% block content %}
    <div id="primaryContentContainer">
      <div id="primaryContent">
        <h2>{{person.name}}'s films</h2>
        {% for film in films %}
        {% if forlopp.first %}
        <div>
        {% endif %}
          <div class="filmitem">
          <p><center><a href="/film/{{film.url}}">{{film.title}}</center><img border="0" src="http://www.clanty.com/proxyimagesimdb?href={{film.image}}" width="150" height="225" alt='image' /></a></p>
          <span><br /><a href="/editfilm/{{film.key}}">EDIT</a> | <a oclick="return confirm('¿Estás seguro de que quieres borrar {{film.title}}?');" href="/deletefilm/{{film.key}}">DELETE</a></span></div>
        {% if forloop.last %}
        </div>
        {% endif %}
        {% endfor %}
      </div>
    </div>
{% endblock %}
